package com.flyduck.mall.pms.api;

import com.flyduck.mall.pms.api.vo.RemoteSkuStockReduceReqVO;
import com.flyduck.mall.pms.api.vo.RemoteSkuStockReleaseReqVO;
import com.flyduck.mall.pms.api.vo.RemoteSkuStockRespVO;
import com.flyduck.ss.common.core.domain.R;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * RemoteSkuStockFeignClient
 * </p>
 *
 * @author flyduck
 * @since 2024-07-15
 */
public interface RemoteSkuStockService {

    void batchReduceSkuStock(@RequestBody List<RemoteSkuStockReduceReqVO> remoteSkuStockReduceReqVOList);

    void batchReleaseSkuStock(@RequestBody List<RemoteSkuStockReleaseReqVO> remoteSkuStockReleaseReqVOList);

    RemoteSkuStockRespVO getSkuStock(@RequestParam("productId") Long productId, @RequestParam("skuId") Long skuId);
}
